﻿<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8" />
	<title>template-class</title>

	<!-- WinJS references -->
	<link href="//Microsoft.WinJS.2.0/css/ui-dark.css" rel="stylesheet" />
	<script src="//Microsoft.WinJS.2.0/js/base.js"></script>
	<script src="//Microsoft.WinJS.2.0/js/ui.js"></script>

	<link href="template-class.css" rel="stylesheet" />
	<script src="template-class.js"></script>
</head>
<body>
	<div class="template-class-page description-page fragment">
		<header aria-label="Header content" role="banner">
			<button class="win-backbutton" aria-label="Back" disabled type="button"></button>
			<h1 class="titlearea win-type-ellipsis">
				<span class="pagetitle">WinJS class item template</span>
			</h1>
		</header>

		<section aria-label="Main content" role="main">
			<p>
				The WinJS Toolkit provides a Visual Studio item template that you can use to create a JavaScript class in your Windows Store application. 
			</p>
			
			<h2>Usage</h2>		
					
			<p>
				Right click on any of your folder folder, then select <strong>Add</strong> &raquo; <strong>New item</strong>. Select the <strong>WinJS class (WinJS Toolkit)</strong>
				from the <strong>WinJS Toolkit</strong> category in the Add New Item dialog.
			</p>
			
			<p>
				The newly created .js file contains code sample for:
				<ul>
					<li>creating a class within a namespace</li>
					<li>creating instance functions</li>
					<li>creating static functions</li>
					<li>creating properties</li>
				</ul>
				Please don't forget to review and customize the newly created .js file.
			</p>
		</section>
	</div>
</body>
</html>
